/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chipwits.room;

import java.awt.Graphics;
import java.util.ArrayList;

/**
 *
 * @author Emmanuel
 */
public class SpriteManager extends ArrayList<Sprite>{

    public SpriteManager() {
    }


    public void updatePosSprites() {
        for(Sprite sprite : this){
            sprite.updatePosition();

            //int hitIndex = testForCollision(sprite);
            //if (hitIndex >= 0) {
            //    bounceOffSprite(cnt, hitIndex);
            //}
        }
    }

    public void redrawSprites(Graphics g) {
        for(Sprite sprite : this){
            sprite.drawSpriteImage(g);
        }
    }

}
